package Servlet;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import Info.RoomInfo;
import Manage.RoomManage;

public class LookOrderServlet extends HttpServlet{
	protected void service(HttpServletRequest request, HttpServletResponse response) 
			throws ServletException, IOException {
		request.setCharacterEncoding("utf-8");
		response.setContentType("text/html;charset=utf-8");
		String roomPrice = request.getParameter("price");
		
		RoomManage roomm = new RoomManage();
		List<RoomInfo> list = roomm.Find(roomPrice);
		request.setAttribute("rooms",list);	
		
		request.getRequestDispatcher("LookTypeRoom.jsp").forward(request, response);
	}
}
